﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true"
    CodeBehind="supplier_all_published.aspx.cs" Inherits="LinkCard.AdminCP.Supplier.supplier_all_published" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="/Template/css/demo_table_jui.css">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript">
        function setValue(page) {
            location.href = 'supplier_all_published.aspx?Name=<%=sName %>&Address=<%=sAddress %>&Phone=<%=sPhone %>&TaxCode=<%=sTaxCode %>&ContactPersonName=<%=sContactPersonName %>&Email=<%=sEmail %>&page=' + page;
        }
    </script>
    <section id="content">
        <section class="container_12 clearfix">
            <section id="main" class="grid_12">
                <article>
                    <div class="h1">Danh sách đã duyệt</div>

                    <div class="box search">

                        <label>Tìm kiếm:</label>
                        <input type="text" onfocus="this.value = '';" onblur="if (this.value == '') { this.value='Tên công ty'; }" value="Tên công ty" size="50" id="Name" runat="server" />
                        
                         <select size="1" id="action" class="medium required" runat="server">
				          <option value="0">Tất cả</option>				
                          <option value="-1">Đã xóa</option>  
                          <option value="-2">Công ty sở hữu / Không hiển thị</option>
                      </select>
                        <%--<input type="text" onfocus="this.value = '';" onblur="if (this.value == '') { this.value='Địa chỉ'; }" value="Địa chỉ" size="70" id="Address" runat="server" />
                        <input type="text" onfocus="this.value = '';" onblur="if (this.value == '') { this.value='Số điện thoại'; }" value="Số điện thoại" size="25" id="Phone" runat="server" />

                        <input type="text" size="25" onfocus="this.value = '';" onblur="if (this.value == '') { this.value='Mã số thuế'; }" value="Mã số thuế" id="TaxCode" runat="server" />
                        <input type="text" visible="false" size="25" onfocus="this.value = '';" onblur="if (this.value == '') { this.value='Người liên hệ'; }" value="Người liên hệ" id="ContactPersonName" runat="server" />

                        <input type="text" size="25" onfocus="this.value = '';" onblur="if (this.value == '') { this.value='Email'; }" value="Email" id="Email" runat="server" />
--%>

                        <asp:Button ID="btnSearch" class="button small" Style="width: 60px;"
                            runat="server" Text="Tìm kiếm" OnClick="btnSearch_Click" />

                    </div>
                    <table class="gtable detailtable" id="datatable">
                        <thead>
                            <tr>
                                <th>
                                    <input type="checkbox" class="checkall" /></th>
                                <th>Tên Công ty</th>
                                <th style="text-align: right">Hiển thị</th>
                                <th style="text-align: right">Trạng thái</th>
                                <th style="text-align: right">Thứ tự</th>
                                <th style="text-align: right">Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="msgList" runat="server" OnItemDataBound="msgList_ItemDataBound">
                                <ItemTemplate>
                                    <tr>
                                        <td>
                                            <input type="checkbox" id="chkDelete" runat="server" />
                                        </td>
                                        <td>
                                            <%# DataBinder.Eval(Container.DataItem, "Name")%>
                                        </td>
                                        <td align="right">
                                            <img id="SupplierTransparency" runat="server" />
                                        </td>
                                        <td align="right">
                                            <img id="SupplierStatus" runat="server" />
                                        </td>
                                        <td align="right">
                                            <%# DataBinder.Eval(Container.DataItem, "SupplierOrder")%>
                                        </td>
                                        <td align="right">
                                            <a href="supplier_edit.aspx?SupplierID=<%# DataBinder.Eval(Container.DataItem, "SupplierID")%>" title="Sửa">
                                            <img src="../Template/images/icons/edit.png" alt="Sửa" /></a>  
                                        </td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                            <tr id="msgNoData" runat="server">
                                <td colspan="8" align="center">Không có công ty bán hàng nào!
                                </td>
                            </tr>


                        </tbody>
                    </table>
                    <div class="tablefooter clearfix">
                        <div class="actions">
                            <select id="ActionOption" runat="server">
                                <option value="0">Thao tác</option>
                                <option value="1">Xóa</option>
                                <option value="2">Khôi phục</option>
                            </select>

                            <asp:Button ID="btnDelete"
                                runat="server" Text="Thực hiện" class="button small"
                                Style="width: 80px;" OnClick="btnDelete_Click" />
                        </div>
                        <div class="pagination" id="divPager" runat="server">
                            <!--<a href="#">Prev</a>-->
                            <%--<a href="#" class="current">1</a> <a href="#">2</a> <a href="#">3</a> <a href="#">4</a> <a href="#">5</a> ... <a href="#">78</a> <a href="#">Trang sau</a>--%>
                            <asp:Literal ID="PagerShow" runat="server"></asp:Literal>
                        </div>
                    </div>

                </article>
            </section>

        </section>
    </section>
</asp:Content>
